from fastapi import Cookie, Header, FastAPI
from typing import Annotated, Union, List

app = FastAPI()


# @app.get('/items/')
# async def read_items(abs_id: str = Cookie()):
#     return {'abs_id':abs_id}

@app.get("/items/")
async def read_items(x_token: Annotated[Union[List[str], None], Header()] = None):
    return {"X-Token values": x_token}